Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- add `pinned` to orchestration contracts, projector, and projection persistence (with migration) - support `thread.meta.update` pin toggles via sidebar context menu and `mod+shift+p` - sort sidebar threads with pinned items first and show a pin indicator
Remove mod+shift+p keybinding for thread.togglePinned from contracts, server defaults, and web handler. Pinning remains available via the sidebar context menu.
4d0842f to
dc8fed5
Compare
Use ProjectionThread.mapFields(Struct.assign(...)) for the DB row schema instead of manually duplicating every field, matching the pattern used elsewhere in the codebase.
Dead code left over from the rebase — the function was extracted to MessagesTimeline.tsx on main but the PR's old inline copy survived.
|
Useful feature for threads, since they can’t normally be sorted. This way, you can pin them in a project and move important stuff above. |
What Changed
Closes #698
Why
My workflow means that I am often creating lots of small threads, with potentially one larger thread running in the background in case I need to make changes with the full context of the plan. This larger thread was often getting buried by the smaller threads. This thread is also often where I would have my terminal running in dev mode, which would be tricky to find sometimes to cancel it.
UI Changes
Checklist
Note
Add thread pinning to sidebar with context menu toggle and persistent storage
pinnedboolean field to theThreadtype andOrchestrationThreadschema, with a default offalsefor historical eventsprojection_threadsDB table via migration 014_ProjectionThreadsPinned.ts to add apinned INTEGER NOT NULL DEFAULT 0columnpinnedonthread.createdand handlepinnedupdates viathread.meta-updatedeventsthread.meta.updatewith the toggled pin stateMacroscope summarized fc69425.